package singleton.lazy1;

/**
 * 懒汉式1
 * 线程不安全
 */
public class Singleton {
    private Singleton(){}
    private static Singleton instance;

    public static Singleton getInstance(){
        if(instance == null){
            instance = new Singleton();
        }
        return instance;
    }

    public void show(){
        System.out.println("This is Instance");
    }
}
